Optimal. Leaf size=89 \[ \frac{35 \cos ^3(a+b x)}{24 b}+\frac{35 \cos (a+b x)}{8 b}-\frac{\cos ^3(a+b x) \cot ^4(a+b x)}{4 b}+\frac{7 \cos ^3(a+b x) \cot ^2(a+b x)}{8 b}-\frac{35 \tanh ^{-1}(\cos (a+b x))}{8 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0501559, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {2592, 288, 302, 206} \[ \frac{35 \cos ^3(a+b x)}{24 b}+\frac{35 \cos (a+b x)}{8 b}-\frac{\cos ^3(a+b x) \cot ^4(a+b x)}{4 b}+\frac{7 \cos ^3(a+b x) \cot ^2(a+b x)}{8 b}-\frac{35 \tanh ^{-1}(\cos (a+b x))}{8 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2592
Rule 288
Rule 302
Rule 206
Rubi steps
\begin{align*} \int \cos ^3(a+b x) \cot ^5(a+b x) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{x^8}{\left (1-x^2\right )^3} \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac{\cos ^3(a+b x) \cot ^4(a+b x)}{4 b}+\frac{7 \operatorname{Subst}\left (\int \frac{x^6}{\left (1-x^2\right )^2} \, dx,x,\cos (a+b x)\right )}{4 b}\\ &=\frac{7 \cos ^3(a+b x) \cot ^2(a+b x)}{8 b}-\frac{\cos ^3(a+b x) \cot ^4(a+b x)}{4 b}-\frac{35 \operatorname{Subst}\left (\int \frac{x^4}{1-x^2} \, dx,x,\cos (a+b x)\right )}{8 b}\\ &=\frac{7 \cos ^3(a+b x) \cot ^2(a+b x)}{8 b}-\frac{\cos ^3(a+b x) \cot ^4(a+b x)}{4 b}-\frac{35 \operatorname{Subst}\left (\int \left (-1-x^2+\frac{1}{1-x^2}\right ) \, dx,x,\cos (a+b x)\right )}{8 b}\\ &=\frac{35 \cos (a+b x)}{8 b}+\frac{35 \cos ^3(a+b x)}{24 b}+\frac{7 \cos ^3(a+b x) \cot ^2(a+b x)}{8 b}-\frac{\cos ^3(a+b x) \cot ^4(a+b x)}{4 b}-\frac{35 \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\cos (a+b x)\right )}{8 b}\\ &=-\frac{35 \tanh ^{-1}(\cos (a+b x))}{8 b}+\frac{35 \cos (a+b x)}{8 b}+\frac{35 \cos ^3(a+b x)}{24 b}+\frac{7 \cos ^3(a+b x) \cot ^2(a+b x)}{8 b}-\frac{\cos ^3(a+b x) \cot ^4(a+b x)}{4 b}\\ \end{align*}
Mathematica [A] time = 0.0406061, size = 141, normalized size = 1.58 \[ \frac{13 \cos (a+b x)}{4 b}+\frac{\cos (3 (a+b x))}{12 b}-\frac{\csc ^4\left (\frac{1}{2} (a+b x)\right )}{64 b}+\frac{13 \csc ^2\left (\frac{1}{2} (a+b x)\right )}{32 b}+\frac{\sec ^4\left (\frac{1}{2} (a+b x)\right )}{64 b}-\frac{13 \sec ^2\left (\frac{1}{2} (a+b x)\right )}{32 b}+\frac{35 \log \left (\sin \left (\frac{1}{2} (a+b x)\right )\right )}{8 b}-\frac{35 \log \left (\cos \left (\frac{1}{2} (a+b x)\right )\right )}{8 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.011, size = 115, normalized size = 1.3 \begin{align*} -{\frac{ \left ( \cos \left ( bx+a \right ) \right ) ^{9}}{4\,b \left ( \sin \left ( bx+a \right ) \right ) ^{4}}}+{\frac{5\, \left ( \cos \left ( bx+a \right ) \right ) ^{9}}{8\,b \left ( \sin \left ( bx+a \right ) \right ) ^{2}}}+{\frac{5\, \left ( \cos \left ( bx+a \right ) \right ) ^{7}}{8\,b}}+{\frac{7\, \left ( \cos \left ( bx+a \right ) \right ) ^{5}}{8\,b}}+{\frac{35\, \left ( \cos \left ( bx+a \right ) \right ) ^{3}}{24\,b}}+{\frac{35\,\cos \left ( bx+a \right ) }{8\,b}}+{\frac{35\,\ln \left ( \csc \left ( bx+a \right ) -\cot \left ( bx+a \right ) \right ) }{8\,b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.967444, size = 120, normalized size = 1.35 \begin{align*} \frac{16 \, \cos \left (b x + a\right )^{3} - \frac{6 \,{\left (13 \, \cos \left (b x + a\right )^{3} - 11 \, \cos \left (b x + a\right )\right )}}{\cos \left (b x + a\right )^{4} - 2 \, \cos \left (b x + a\right )^{2} + 1} + 144 \, \cos \left (b x + a\right ) - 105 \, \log \left (\cos \left (b x + a\right ) + 1\right ) + 105 \, \log \left (\cos \left (b x + a\right ) - 1\right )}{48 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.44378, size = 378, normalized size = 4.25 \begin{align*} \frac{16 \, \cos \left (b x + a\right )^{7} + 112 \, \cos \left (b x + a\right )^{5} - 350 \, \cos \left (b x + a\right )^{3} - 105 \,{\left (\cos \left (b x + a\right )^{4} - 2 \, \cos \left (b x + a\right )^{2} + 1\right )} \log \left (\frac{1}{2} \, \cos \left (b x + a\right ) + \frac{1}{2}\right ) + 105 \,{\left (\cos \left (b x + a\right )^{4} - 2 \, \cos \left (b x + a\right )^{2} + 1\right )} \log \left (-\frac{1}{2} \, \cos \left (b x + a\right ) + \frac{1}{2}\right ) + 210 \, \cos \left (b x + a\right )}{48 \,{\left (b \cos \left (b x + a\right )^{4} - 2 \, b \cos \left (b x + a\right )^{2} + b\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 33.4691, size = 869, normalized size = 9.76 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.20934, size = 282, normalized size = 3.17 \begin{align*} -\frac{\frac{3 \,{\left (\frac{24 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} + \frac{210 \,{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} + 1\right )}{\left (\cos \left (b x + a\right ) + 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) - 1\right )}^{2}} - \frac{72 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac{3 \,{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} - \frac{256 \,{\left (\frac{9 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac{6 \,{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} - 5\right )}}{{\left (\frac{\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} - 1\right )}^{3}} - 420 \, \log \left (\frac{{\left | -\cos \left (b x + a\right ) + 1 \right |}}{{\left | \cos \left (b x + a\right ) + 1 \right |}}\right )}{192 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]